﻿using System;
using System.Web.Mvc;
using HinduShop.Domain.Models.Account;

namespace HinduShop.UI.ViewModels.Account
{
    public class UserModel
    {
        public int Id { get; set; }
        public string UserName { get; set; }
        public string ApplicationName { get; set; }
        public string Email { get; set; }

        public string Comment { get; set; }
        public string PasswordHash { get; set; }

        public DateTime CreationDate { get; set; }

        public UserModel(User user)
        {
            Id = user.Id;
            UserName = user.UserName;
            ApplicationName = user.ApplicationName;
            Email = user.Email;
            Comment = user.Comment;
            PasswordHash = user.PasswordHash;
            CreationDate = user.CreationDate;
        }

        public UserModel()
        {
            
        }
    }
}